-- GENERATED SPELL FOR [Splinterbone Captain] --


function spell0_7345(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(12461,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7345', 2333, 1)
end

function spell1_7345(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(9128,pUnit)
pUnit:RegisterEvent('Sorts_7345', 518, 1)
end

function Sorts_7345(pUnit, Event)
local choix_sorts_7345 = math.random(0, 1)
if choix_sorts_7345 == 0 then
pUnit:RegisterEvent('spell0_7345', 1, 1)
end
if choix_sorts_7345 == 1 then
pUnit:RegisterEvent('spell1_7345', 1, 1)
end
end

function mob7345_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7345', math.random(1500, 3000), 1)
end

function mob7345_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7345_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7345_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7345, 1, 'mob7345_Action')
RegisterUnitEvent(7345, 2, 'mob7345_Leave')
RegisterUnitEvent(7345, 3, 'mob7345_Kill')
RegisterUnitEvent(7345, 4, 'mob7345_Die')
